<?php

// mbilling/BillingBundle/Entity/ordersVps.php
namespace mbilling\BillingBundle\Entity;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 */
class ordersVps
{
    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;

    /**
     * @ORM\Column(type="integer")
     */
    protected $cpu;
     
    /**
     * @ORM\Column(type="float")
     */
    protected $ram;
    
    /**
     * @ORM\Column(type="float")
     */
    protected $hdd;

    /**
     * @ORM\Column(type="integer")
     */
    protected $ded_ip_count;
    
    /**
     * @ORM\Column(type="boolean")
     */
    protected $dns_access;

    /**
     * @ORM\Column(type="boolean")
     */
    protected $is_changed;
    
    /**
     * @ORM\Column(type="integer")
     */
    protected $os;
	
    /**
     * @ORM\Column(type="integer")
     */
    protected $order_id;
	
    /**
     * @ORM\Column(type="integer")
     */
    protected $vps_tarif;

    /**
     * @ORM\Column(type="string", length=200, nullable="TRUE")
     */
    protected $comment;

    /**
     * @ORM\Column(type="string", length=45, nullable="TRUE")
     */
    protected $promocode;

    /**
     * @validation:AssertTrue
     */
    protected $terms;

    /**
     * @ORM\Column(type="boolean")
     */
    protected $is_shared;

    /**
     * @ORM\Column(type="string", length=45, nullable="TRUE")
     */
    protected $name;
    
    protected $period;

    protected $use_coupon;
    
    public function setId($id)
    {
        $this->id = $id;
    }
    public function getId()
    {
        return $this->id;
    }
    
    public function setCpu($cpu)
    {
        $this->cpu = $cpu;
    }
    public function getCpu()
    {
        return $this->cpu;
    }

    public function setRam($ram)
    {
        $this->ram = $ram;
    }
    public function getRam()
    {
        return $this->ram;
    }

    public function setHdd($hdd)
    {
        $this->hdd = $hdd;
    }
    public function getHdd()
    {
        return $this->hdd;
    }

    public function setDedIpCount($ded_ip_count)
    {
        $this->ded_ip_count = $ded_ip_count;
    }
    public function getDedIpCount()
    {
        return $this->ded_ip_count;
    }
    
    public function setDnsAccess($dns_access)
    {
        $this->dns_access = $dns_access;
    }
    public function getDnsAccess()
    {
        return $this->dns_access;
    }

    public function setIsChanged($is_changed)
    {
        $this->is_changed = $is_changed;
    }
    public function getIsChanged()
    {
        return $this->is_changed;
    }
    
    public function setOs($os)
    {
        $this->os = $os;
    }
    public function getOs()
    {
        return $this->os;
    }

    public function setOrderId($order_id)
    {
        $this->order_id = $order_id;
    }
    public function getOrderId()
    {
        return $this->order_id;
    }

    public function setVpsTarif($vps_tarif)
    {
        $this->vps_tarif = $vps_tarif;
    }
    public function getVpsTarif()
    {
        return $this->vps_tarif;
    }
    
    public function setComment($comment)
    {
        $this->comment = $comment;
    }
    public function getComment()
    {
        return $this->comment;
    }

    public function setTerms($terms)
    {
        $this->terms = $terms;
    }
    public function getTerms()
    {
        return $this->terms;
    }

    public function setPromocode($promocode)
    {
        $this->promocode = $promocode;
    }
    public function getPromocode()
    {
        return $this->promocode;
    }

    public function setIsShared($is_shared)
    {
        $this->is_shared = $is_shared;
    }
    public function getIsShared()
    {
        return $this->is_shared;
    }

    public function setName($name)
    {
        $this->name = $name;
    }
    public function getName()
    {
        return $this->name;
    }

    public function setPeriod($period)
    {
        $this->period = $period;
    }
    public function getPeriod()
    {
        return $this->period;
    }

    public function setUseCoupon($use_coupon)
    {
        $this->use_coupon = $use_coupon;
    }
    public function getUseCoupon()
    {
        return $this->use_coupon;
    }
    
    public function initDefaultEntity()
    {
        $this->setCpu('2500');
        $this->setRam('128');
        $this->setHdd('50');
        $this->setDnsAccess('0');
        $this->setOsId('1');
        $this->setOrderId('2');
        $this->setVpsTarif('1');
        $this->setComment('mycomment');
        $this->setPromocode('');
        return $this;
    }
}
?>
